﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ASCII.Common
{
    public class ASCIIConsole
    {
        private ASCIIRenderer renderer;
        public ASCIICellColor BackgroundColor = ASCIICellColor.Black;
        public ASCIICellColor ForegroundColor = ASCIICellColor.Gray;
        private int cursorX = 0;
        public int CursorX
        {
            get
            {
                return cursorX;
            }
            set
            {
                cursorX = value;
            }
        }
        private int cursorY = 0;
        public int CursorY
        {
            get
            {
                return cursorY;
            }
            set
            {
                cursorY = value;
            }
        }
        public void Clear()
        {
            renderer.SetCells(0, 0, renderer.Board.Columns, renderer.Board.Rows, 0, ForegroundColor, BackgroundColor);
            CursorX = 0;
            CursorY = 0;
        }
        private ASCIIConsole() { }
        public ASCIIConsole(ASCIIRenderer theRenderer)
        {
            renderer = theRenderer;
        }
    }
}
